package test;

import java.io.File;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

import org.dom4j.Document;
import org.dom4j.Element;
import org.dom4j.io.SAXReader;

import cn.batch.daemon.hibernate.bean.PbocSummary;

/**
 * @author xihn 根据人行征信xml文件,组装人行征信bean
 * 
 */
public class PashXmlBuildPbocSummary {	

	private static Date batchDate;
	
	public static PbocSummary bulidPbocSummary(File file,String bDate) throws Exception {
		SimpleDateFormat bd = new SimpleDateFormat("yyyyMMdd");
		batchDate = bd.parse(bDate);
		SimpleDateFormat df = new SimpleDateFormat("yyyy.MM.dd HH:mm:ss");
		SimpleDateFormat dfs = new SimpleDateFormat("yyyy.MM.dd");
		SAXReader reader = new SAXReader();
		Document doc = reader.read(file);
		
		Element root = doc.getRootElement();
		//人行主表信息
		PbocSummary pbocSummary = buildSummary(df, root);/*
		//个人身份信息
		pbocSummary = buildPersonalIdentity(pbocSummary,dfs, root);
		//配偶信息
		pbocSummary = buildSpouse(pbocSummary,root);	
		//征信人居住信息--多笔
		pbocSummary = bulidResides(pbocSummary,dfs, root);		
		//职业信息--多笔
		pbocSummary = bulidProfessions(pbocSummary,dfs, root);
		//信用提示
		pbocSummary = bulidCreditTip(pbocSummary,root);
		//逾期及违约信息概要
		pbocSummary = buildUnpaymentAndInvalidSummary(pbocSummary,root);
		//逾期（透支）信息汇总
		pbocSummary = buildUnpaymentOverdraftSummary(pbocSummary,root);
		//未结清贷款信息汇总
		pbocSummary = buildUnsettledLoanSummary(pbocSummary,root);
		//未销户贷记卡信息汇总
		pbocSummary = buildUnCancelAccountLoancardSummary(pbocSummary,root);
		//未销户准贷记卡信息汇总
		pbocSummary = buildUnCancelAccountStandardLoancardSummary(pbocSummary,root);
		//对外担保信息汇总
		pbocSummary = buildGuaranteeSummary(pbocSummary,dfs,root);
		//资产处置信息--多笔
		pbocSummary = buildAssetDisposes(pbocSummary,dfs, root);
		//保证人代偿信息--多笔
		pbocSummary = buildGuarateesInsteadPays(pbocSummary,dfs,root);
		//贷款信息--多笔
		pbocSummary = buildLoans(pbocSummary,dfs,root);
		//贷记卡--多笔
		pbocSummary = buildLoancards(pbocSummary,dfs,root);
		//准贷记卡--多笔
		pbocSummary = buildStandardLoancards(pbocSummary,dfs,root);		
		//欠税记录--多笔
		pbocSummary = buildOweTaxs(pbocSummary,dfs,root);
		//民事判决记录--多笔
		pbocSummary = buildCivilCourts(pbocSummary,dfs,root);
		//强制执行记录--多笔
		pbocSummary = buildCourtExecutes(pbocSummary,dfs,root);
		//行政处罚记录--多笔
		pbocSummary = buildAdministrationPunishments(pbocSummary,root);
		//住房公积金参缴记录
		pbocSummary = buildAccFundRecord(pbocSummary,dfs,root);
		//养老保险金缴存记录
		pbocSummary = buildSocialInsuranceDeposit(pbocSummary,dfs,root);
		//养老保险金发放记录
		pbocSummary = buildSocialInsuranceDeliver(pbocSummary,dfs,root);
		//低保救助记录--多笔
		pbocSummary = buildSalvates(pbocSummary,dfs,root);
		//执业资格记录--多笔
		pbocSummary = buildCompetents(pbocSummary,root);
		//行政奖励记录--多笔
		pbocSummary = buildAwardAndPunishs(pbocSummary,root);
		//车辆交易和抵押记录--多笔
		pbocSummary = buildVehicles(pbocSummary,dfs,root);
		//电信缴费记录--多笔
		pbocSummary = buildTelPays(pbocSummary,dfs,root);
		//本人声明--多笔
		pbocSummary = buildAnnounces(pbocSummary,dfs,root);
		//异议标注--多笔
		pbocSummary = buildDissents(pbocSummary,dfs,root);
		//查询记录汇总		
		pbocSummary = buildQueryRecordSummary(pbocSummary,root);
		//信贷审批查询记录明细--多笔
		pbocSummary = buildCreditAndLoanQueryRecords(pbocSummary,dfs,root);
		*/
		return pbocSummary;
	}
	/*
	*//**
	 * 征信信贷审批查询记录明细--多笔
	 * @param root
	 * @param pbocS
	 * @throws ParseException
	 * 
	 *//*
	@SuppressWarnings("unchecked")
	private static PbocSummary buildCreditAndLoanQueryRecords(PbocSummary pbocS,SimpleDateFormat dfs,Element root) throws ParseException {
		HashSet<PbocLaQueryDetail> setP = new HashSet<PbocLaQueryDetail>();
		Element creditAndLoanQueryRecords = root.element("creditAndLoanQueryRecords");
		List<Element> creditAndLoanQueryRecordDetails = creditAndLoanQueryRecords.elements("creditAndLoanQueryRecordDetails");
		for (int i = 0; i < creditAndLoanQueryRecordDetails.size(); i++) {
			PbocLaQueryDetail pb = new PbocLaQueryDetail();
			Element pr = creditAndLoanQueryRecordDetails.get(i);				
			//查询日期  queryDate
			if(checkNull(pr.element("queryDate"),true)!=null){
					pb.setQueryDate(dfs.parse(pr.element("queryDate").getTextTrim()));
			}
			//查询操作员 operator	
			if(checkNull(pr.element("operator"),false)!=null){
				pb.setOperator(pr.element("operator").getTextTrim());
			}
			
			//查询原因 queryReason
			if(checkNull(pr.element("queryReason"),false)!=null){
				pb.setQueryReason(ChangeQueryReason.queryReason(pr.element("queryReason").getTextTrim()));
			}
			pb.setPbocSummary(pbocS);
			
			pb.setBatchDate(batchDate);
			pb.setBatchType(TaskMissionType.FXYJM.getValue());
			
			setP.add(pb);
		}
		pbocS.setPbocLaQueryDetails(setP);
		return pbocS;
	}
	
	*//**
	 * 查询记录汇总
	 * @param dfs
	 * @param root
	 * @param pbocS
	 * @throws ParseException 
	 *//*
	private static PbocSummary buildQueryRecordSummary(PbocSummary pbocS,Element root){
		HashSet<PbocQueryRecordSummary> setP = new HashSet<PbocQueryRecordSummary>();
		PbocQueryRecordSummary pb = new PbocQueryRecordSummary();
		Element queryRecordSummary = root.element("queryRecordSummary");
		//最近1个月内的查询机构数贷款审批 recentlyOneMonthFor02OrganCnt
		if(checkNull(queryRecordSummary.element("recentlyOneMonthFor02OrganCnt"),false)!=null){
			pb.setLoanOrgNumM1(changeNum(queryRecordSummary.element("recentlyOneMonthFor02OrganCnt").getTextTrim()));
		}	
		//最近1个月内的查询机构数信用卡审批  recentlyOneMonthFor03OrganCnt
		if(checkNull(queryRecordSummary.element("recentlyOneMonthFor03OrganCnt"),false)!=null){
			pb.setCcOrgNumM1(changeNum(queryRecordSummary.element("recentlyOneMonthFor03OrganCnt").getTextTrim()));
		}
		
		//最近1个月内的查询次数贷款审批  recentlyOneMonthFor02QueryNum
		if(checkNull(queryRecordSummary.element("recentlyOneMonthFor02QueryNum"),false)!=null){
			pb.setLoanQueryCntM1(changeNum(queryRecordSummary.element("recentlyOneMonthFor02QueryNum").getTextTrim()));
		}
		
		//最近1个月内的查询次数信用卡审批 recentlyOneMonthFor03QueryNum 
		if(checkNull(queryRecordSummary.element("recentlyOneMonthFor03QueryNum"),false)!=null){
			pb.setCcQueryCntM1(changeNum(queryRecordSummary.element("recentlyOneMonthFor03QueryNum").getTextTrim()));
		}
		
		//最近2年内的查询次数贷后管理 recentlyTwoYearFor01QueryNum
		if(checkNull(queryRecordSummary.element("recentlyTwoYearFor01QueryNum"),false)!=null){
			pb.setLmQueryCntY2(changeNum(queryRecordSummary.element("recentlyTwoYearFor01QueryNum").getTextTrim()));
		}
		
		//最近2年内的查询次数担保资格审查 recentlyTwoYearFor08QueryNum
		if(checkNull(queryRecordSummary.element("recentlyTwoYearFor08QueryNum"),false)!=null){
			pb.setGuaQueryCntY2(changeNum(queryRecordSummary.element("recentlyTwoYearFor08QueryNum").getTextTrim()));
		}
		
		//最近2年内的查询次数特约商户实名审查 recentlyTwoYearFor17QueryNum
		if(checkNull(queryRecordSummary.element("recentlyOneMonthFor02OrganCnt"),false)!=null){
			pb.setDeaQueryCntY2(changeNum(queryRecordSummary.element("recentlyTwoYearFor17QueryNum").getTextTrim()));
		}
		pb.setPbocSummary(pbocS);
		
		pb.setBatchDate(batchDate);
		pb.setBatchType(TaskMissionType.FXYJM.getValue());
		
		setP.add(pb);
		pbocS.setPbocQueryRecordSummaries(setP);
		return pbocS;
	}
	
	*//**
	 * 异议标注--多笔
	 * @param root
	 * @param dfs
	 * @param pbocS
	 * @throws ParseException
	 * 
	 *//*
	@SuppressWarnings("unchecked")
	private static PbocSummary buildDissents(PbocSummary pbocS,SimpleDateFormat dfs,Element root) throws ParseException {
		HashSet<PbocDissentInfo> setP = new HashSet<PbocDissentInfo>();
		Element dissents = root.element("dissents");
		List<Element> dissentInfo = dissents.elements("dissentInfo");
		for (int i = 0; i < dissentInfo.size(); i++) {
			PbocDissentInfo pb = new PbocDissentInfo();
			Element pr = dissentInfo.get(i);				
			//标注内容 message
			if(checkNull(pr.element("message"),false)!=null){
				pb.setMessage(pr.element("message").getTextTrim());
			}
			
			//添加日期 getTime	
			if(checkNull(pr.element("getTime"),true)!=null){
				pb.setGetTime(dfs.parse(pr.element("getTime").getTextTrim()));	
			}
			pb.setPbocSummary(pbocS);
			
			pb.setBatchDate(batchDate);
			pb.setBatchType(TaskMissionType.FXYJM.getValue());
			
			setP.add(pb);
		}		
		pbocS.setPbocDissentInfos(setP);
		return pbocS;
	}
	
	*//**
	 * 本人声明--多笔
	 * @param root
	 * @param dfs
	 * @param pbocS
	 * @throws ParseException
	 * 
	 *//*
	@SuppressWarnings("unchecked")
	private static PbocSummary buildAnnounces(PbocSummary pbocS,SimpleDateFormat dfs,Element root) throws ParseException {
		HashSet<PbocAnnounceInfo> setP = new HashSet<PbocAnnounceInfo>();
		Element announces = root.element("announces");
		List<Element> announceInfo = announces.elements("announceInfo");
		for (int i = 0; i < announceInfo.size(); i++) {
			PbocAnnounceInfo pb = new PbocAnnounceInfo();
			Element pr = announceInfo.get(i);				
			//声明内容 announcementContent
			if(checkNull(pr.element("announcementContent"),false)!=null){
				pb.setContent(pr.element("announcementContent").getTextTrim());
			}
			
			//添加日期 getTime
			if(checkNull(pr.element("getTime"),true)!=null){
				pb.setGetTime(dfs.parse(pr.element("getTime").getTextTrim()));	
			}
			pb.setPbocSummary(pbocS);
			
			pb.setBatchDate(batchDate);
			pb.setBatchType(TaskMissionType.FXYJM.getValue());
			
			setP.add(pb);
		}		
		pbocS.setPbocAnnounceInfos(setP);
		return pbocS;
	}
	
	*//**
	 * 电信缴费记录--多笔
	 * @param root
	 * @param dfs
	 * @param pbocS
	 * @throws ParseException
	 * 
	 *//*
	@SuppressWarnings("unchecked")
	private static PbocSummary buildTelPays(PbocSummary pbocS,SimpleDateFormat dfs,Element root) throws ParseException {
		HashSet<PbocTelPayRecord> setP = new HashSet<PbocTelPayRecord>();
		Element telPays = root.element("telPays");
		List<Element> telPayment = telPays.elements("telPayment");
		for (int i = 0; i < telPayment.size(); i++) {
			PbocTelPayRecord pb = new PbocTelPayRecord();
			Element pr = telPayment.get(i);				
			//电信运营商 orgName 
			if(checkNull(pr.element("orgName"),false)!=null){
				pb.setOrg(pr.element("orgName").getTextTrim());
			}
			
			//业务类型 telType 	
			if(checkNull(pr.element("telType"),false)!=null){
				pb.setBizType(pr.element("telType").getTextTrim());
			}
			
			//业务开通日期 openDate
			if(checkNull(pr.element("openDate"),true)!=null){
				pb.setOpenDate(dfs.parse(pr.element("openDate").getTextTrim()));
			}
			//当前缴费状态 curPaystat
			if(checkNull(pr.element("curPaystat"),false)!=null){
				pb.setPayStatus(ChangeCurPaystat.curPaystat(pr.element("curPaystat").getTextTrim()));
			}
			
			//当前欠费金额 amtPastDue 
			if(checkNull(pr.element("amtPastDue"),false)!=null){
				pb.setOweAmt(changeNum(pr.element("amtPastDue").getTextTrim()));
			}
			//当前欠费月数 oweMonths
			if(checkNull(pr.element("oweMonths"),false)!=null){
				pb.setOweMth(changeNum(pr.element("oweMonths").getTextTrim()));	
			}
			//记账年月 accountDate
			if(checkNull(pr.element("accountDate"),false)!=null){
				pb.setActMth(pr.element("accountDate").getTextTrim());
			}
			//最近24个月缴费记录 status24
			if(checkNull(pr.element("status24"),false)!=null){
				pb.setPayRecord(pr.element("status24").getTextTrim());
			}
			
			pb.setPbocSummary(pbocS);
			
			pb.setBatchDate(batchDate);
			pb.setBatchType(TaskMissionType.FXYJM.getValue());
			
			setP.add(pb);
		}		
		pbocS.setPbocTelPayRecords(setP);
		return pbocS;
	}
	
	*//**
	 * 车辆交易和抵押记录--多笔
	 * @param root
	 * @param dfs
	 * @param pbocS
	 * @throws ParseException
	 * 
	 *//*
	@SuppressWarnings("unchecked")
	private static PbocSummary buildVehicles(PbocSummary pbocS,SimpleDateFormat dfs,Element root) throws ParseException {
		HashSet<PbocVehicleRecord> setP = new HashSet<PbocVehicleRecord>();
		Element vehicles = root.element("vehicles");
		List<Element> vehicleInfo = vehicles.elements("vehicleInfo");
		for (int i = 0; i < vehicleInfo.size(); i++) {
			PbocVehicleRecord pb = new PbocVehicleRecord();
			Element pr = vehicleInfo.get(i);				
			//车牌号码 licensePlateCode
			if(checkNull(pr.element("licensePlateCode"),false)!=null){
				pb.setLicenseCode(pr.element("licensePlateCode").getTextTrim());
			}
			
			//发动机号 engineNumber
			if(checkNull(pr.element("engineNumber"),false)!=null){
				pb.setEngineName(pr.element("engineNumber").getTextTrim());
			}
			
			//品牌 licensePlateClassName
			if(checkNull(pr.element("licensePlateClassName"),false)!=null){
				pb.setBrand(pr.element("licensePlateClassName").getTextTrim());
			}
			
			//车辆类型 carType
			if(checkNull(pr.element("carType"),false)!=null){
				pb.setCarType(ChangeVehicles.carType(pr.element("carType").getTextTrim()));
			}
			
			//使用性质 useCharacter 
			if(checkNull(pr.element("useCharacter"),false)!=null){
				pb.setCharacter(ChangeVehicles.useCharacter(pr.element("useCharacter").getTextTrim()));
			}
			
			//车辆状态 carState 
			if(checkNull(pr.element("carState"),false)!=null){
				pb.setCarStatus(ChangeVehicles.carState(pr.element("carState").getTextTrim()));	
			}
			
			//抵押标记 pledgeFlag 
			if(checkNull(pr.element("pledgeFlag"),false)!=null){
				pb.setMortgageFlag(ChangeVehicles.mortgageFlag(pr.element("pledgeFlag").getTextTrim()));
			}
			
			//信息更新日期 occuredDate
			if(checkNull(pr.element("occuredDate"),true)!=null){
				pb.setOccureDate(dfs.parse(pr.element("occuredDate").getTextTrim()));
			}
			pb.setPbocSummary(pbocS);
			
			pb.setBatchDate(batchDate);
			pb.setBatchType(TaskMissionType.FXYJM.getValue());
			
			setP.add(pb);
		}		
		pbocS.setPbocVehicleRecords(setP);
		return pbocS;
	}
	
	*//**
	 * 行政奖励记录--多笔
	 * @param root
	 * @param pbocS
	 * @throws ParseException
	 * 
	 *//*
	@SuppressWarnings("unchecked")
	private static PbocSummary buildAwardAndPunishs(PbocSummary pbocS,Element root) {
		HashSet<PbocAwardRecord> setP = new HashSet<PbocAwardRecord>();
		Element awardAndPunishs = root.element("awardAndPunishs");
		List<Element> competence = awardAndPunishs.elements("competence");
		for (int i = 0; i < competence.size(); i++) {
			PbocAwardRecord pb = new PbocAwardRecord();
			Element pr = competence.get(i);				
			//奖励机构 organName
			if(checkNull(pr.element("organName"),false)!=null){
				pb.setOrgName(pr.element("organName").getTextTrim());
			}
			
			//奖励内容 content
			if(checkNull(pr.element("content"),false)!=null){
				pb.setContent(ChangeGrade.grade(pr.element("content").getTextTrim()));
			}
			
			//生效日期 startDate
			if(checkNull(pr.element("startDate"),false)!=null){
				pb.setStartDate(pr.element("startDate").getTextTrim());
			}
			
			//截止日期 endDate
			if(checkNull(pr.element("deadLine"),false)!=null){
				pb.setEndDate(pr.element("deadLine").getTextTrim());
			}
			
			pb.setPbocSummary(pbocS);
			
			pb.setBatchDate(batchDate);
			pb.setBatchType(TaskMissionType.FXYJM.getValue());
			
			setP.add(pb);
		}		
		pbocS.setPbocAwardRecords(setP);
		return pbocS;
	}
	
	*//**
	 * 执业资格记录--多笔
	 * @param root
	 * @param pbocS
	 * @throws ParseException
	 * 
	 *//*
	@SuppressWarnings("unchecked")
	private static PbocSummary buildCompetents(PbocSummary pbocS,Element root) {
		HashSet<PbocPrRecord> setP = new HashSet<PbocPrRecord>();
		Element competents = root.element("competents");
		List<Element> competence = competents.elements("competence");
		for (int i = 0; i < competence.size(); i++) {
			PbocPrRecord pb = new PbocPrRecord();
			Element pr = competence.get(i);				
			//执业资格名称 competencyName 
			if(checkNull(pr.element("competencyName"),false)!=null){
				pb.setPrName(pr.element("competencyName").getTextTrim());
			}
			
			//等级 grade 
			if(checkNull(pr.element("grade"),false)!=null){
				pb.setGrade(ChangeGrade.grade(pr.element("grade").getTextTrim()));
			}
			
			//获得日期 awardDate
			if(checkNull(pr.element("awardDate"),false)!=null){
				pb.setAwardDate(pr.element("awardDate").getTextTrim());
			}
			
			//到期日期 deadLine
			if(checkNull(pr.element("deadLine"),false)!=null){
				pb.setExpireDate(pr.element("deadLine").getTextTrim());
			}
			
			//吊销日期 revocateDate 
			if(checkNull(pr.element("revocateDate"),false)!=null){
				pb.setRevokeDate(pr.element("revocateDate").getTextTrim());
			}
			
			//颁发机构 orgName 
			if(checkNull(pr.element("orgName"),false)!=null){
				pb.setOrg(pr.element("orgName").getTextTrim());	
			}
			
			//机构所在地areaCode 
			if(checkNull(pr.element("areaCode"),false)!=null){
				pb.setArea(pr.element("areaCode").getTextTrim());
			}
			
			pb.setPbocSummary(pbocS);
			
			pb.setBatchDate(batchDate);
			pb.setBatchType(TaskMissionType.FXYJM.getValue());
			
			setP.add(pb);
		}		
		pbocS.setPbocPrRecords(setP);
		return pbocS;
	}
	
	*//**
	 * 低保救助记录--多笔
	 * @param dfs
	 * @param root
	 * @param pbocS
	 * @throws ParseException
	 * 
	 *//*
	@SuppressWarnings("unchecked")
	private static PbocSummary buildSalvates(PbocSummary pbocS,SimpleDateFormat dfs,Element root)throws ParseException {
		HashSet<PbocSalvationRecord> setP = new HashSet<PbocSalvationRecord>();
		Element salvates = root.element("salvates");
		List<Element> salvation = salvates.elements("courtExecution");
		for (int i = 0; i < salvation.size(); i++) {
			PbocSalvationRecord pb = new PbocSalvationRecord();
			Element pr = salvation.get(i);				
			//人员类别 personnelType 
			if(checkNull(pr.element("personnelType"),false)!=null){
				pb.setPersonType(ChangePersonnelType.personnelType(pr.element("personnelType").getTextTrim()));
			}
			
			//所在地  address 	
			if(checkNull(pr.element("address"),false)!=null){
				pb.setAdress(pr.element("address").getTextTrim());
			}
			
			//工作单位 enterpriseName
			if(checkNull(pr.element("enterpriseName"),false)!=null){
				pb.setCompany(pr.element("enterpriseName").getTextTrim());
			}
			
			//家庭月收入 familyEarning
			if(checkNull(pr.element("familyEarning"),false)!=null){
				pb.setFamilyIncome(changeNum(pr.element("familyEarning").getTextTrim()));
			}
			//申请日期  requisitionDate
			if(checkNull(pr.element("requisitionDate"),true)!=null){
				pb.setApplicationDate(dfs.parse(pr.element("requisitionDate").getTextTrim()));
			}
			
			//批准日期 passDate 
			if(checkNull(pr.element("passDate"),true)!=null){
				pb.setApproveDate(dfs.parse(pr.element("passDate").getTextTrim()));	
			}
			
			//信息更新日期 occureDate
			if(checkNull(pr.element("occureDate"),true)!=null){
				pb.setOccureDate(dfs.parse(pr.element("occureDate").getTextTrim()));
			}
			pb.setPbocSummary(pbocS);
			
			pb.setBatchDate(batchDate);
			pb.setBatchType(TaskMissionType.FXYJM.getValue());
			
			setP.add(pb);
		}		
		pbocS.setPbocSalvationRecords(setP);
		return pbocS;
	}
	
	*//**
	 * 养老保险金发放记录
	 * @param dfs
	 * @param root
	 * @param pbocS
	 * @throws ParseException 
	 *//*
	
	private static PbocSummary buildSocialInsuranceDeliver(PbocSummary pbocS,SimpleDateFormat dfs,Element root) throws ParseException{
		HashSet<PbocAiOutRecord> setP = new HashSet<PbocAiOutRecord>();
		PbocAiOutRecord pb = new PbocAiOutRecord();
		Element socialInsuranceDeliver = root.element("socialInsuranceDeliver");
		//发放地  insuranceOrgAreaName
		if(checkNull(socialInsuranceDeliver.element("insuranceOrgAreaName"),false)!=null){
			pb.setOrgName(socialInsuranceDeliver.element("insuranceOrgAreaName").getTextTrim());
		}
		
		//离退休类别 retireType
		if(checkNull(socialInsuranceDeliver.element("retireType"),false)!=null){
			pb.setRetireType(ChangeRetireType.retireType(socialInsuranceDeliver.element("retireType").getTextTrim()));
		}
		
		//离退休月份 retiredDate
		if(checkNull(socialInsuranceDeliver.element("retiredDate"),false)!=null){
			pb.setRetireMth(socialInsuranceDeliver.element("retiredDate").getTextTrim());
		}
		
		//参加工作月份 workDate 
		if(checkNull(socialInsuranceDeliver.element("workDate"),false)!=null){
			pb.setWorkMth(socialInsuranceDeliver.element("workDate").getTextTrim());
		}
		
		//实发养老金 actualMoney
		if(checkNull(socialInsuranceDeliver.element("actualMoney"),false)!=null){
			pb.setActualAmt(changeNum(socialInsuranceDeliver.element("actualMoney").getTextTrim()));
		}		
		//停发原因  pauseReason
		if(checkNull(socialInsuranceDeliver.element("pauseReason"),false)!=null){
			pb.setPauseReason(ChangeRePauseReason.rePauseReason(socialInsuranceDeliver.element("pauseReason").getTextTrim()));
		}
		
		//原单位名称 enterpriseName
		if(checkNull(socialInsuranceDeliver.element("enterpriseName"),false)!=null){
			pb.setCompany(socialInsuranceDeliver.element("enterpriseName").getTextTrim());
		}
		
		//信息更新日期 occureDate
		if(checkNull(socialInsuranceDeliver.element("occureDate"),true)!=null){
			pb.setOccureDate(dfs.parse(socialInsuranceDeliver.element("occureDate").getTextTrim()));
		}
		pb.setPbocSummary(pbocS);
		
		pb.setBatchDate(batchDate);
		pb.setBatchType(TaskMissionType.FXYJM.getValue());
		
		setP.add(pb);
		pbocS.setPbocAiOutRecords(setP);
		return pbocS;
	}
	
	*//**
	 * 养老保险金缴存记录
	 * @param dfs
	 * @param root
	 * @param pbocS
	 * @throws ParseException 
	 *//*
	private static PbocSummary buildSocialInsuranceDeposit(PbocSummary pbocS,SimpleDateFormat dfs,Element root) throws ParseException{
		HashSet<PbocAiInRecord> setP = new HashSet<PbocAiInRecord>();
		PbocAiInRecord pb = new PbocAiInRecord();
		Element socialInsuranceDeposit = root.element("socialInsuranceDeposit");
		//参保地 insuranceOrgAreaName
		if(checkNull(socialInsuranceDeposit.element("insuranceOrgAreaName"),false)!=null){
			pb.setOrgName(socialInsuranceDeposit.element("insuranceOrgAreaName").getTextTrim());
		}
		
		//参保日期 openDate 
		if(checkNull(socialInsuranceDeposit.element("openDate"),true)!=null){
			pb.setJoinDate(dfs.parse(socialInsuranceDeposit.element("openDate").getTextTrim()));
		}
		
		//累计缴费月数 monthDuration
		if(checkNull(socialInsuranceDeposit.element("monthDuration"),false)!=null){
			pb.setMaxMth(changeNum(socialInsuranceDeposit.element("monthDuration").getTextTrim()));
		}
		
		//参加工作月份 workDate
		if(checkNull(socialInsuranceDeposit.element("workDate"),false)!=null){
			pb.setWorkMth(socialInsuranceDeposit.element("workDate").getTextTrim());
		}
		
		//缴费状态 accountStatus
		if(checkNull(socialInsuranceDeposit.element("accountStatus"),false)!=null){
			pb.setActStatus(ChangeAccountStatus.accountStatus(socialInsuranceDeposit.element("accountStatus").getTextTrim()));
		}
		
		//个人缴费基数 basicMoney
		if(checkNull(socialInsuranceDeposit.element("basicMoney"),false)!=null){
			pb.setBasicAmt(changeNum(socialInsuranceDeposit.element("basicMoney").getTextTrim()));
		}
		
		//本月缴费金额 actualMoney
		if(checkNull(socialInsuranceDeposit.element("actualMoney"),false)!=null){
			pb.setCurrentAmt(changeNum(socialInsuranceDeposit.element("actualMoney").getTextTrim()));
		}
		
		//信息更新日期  occureDate 
		if(checkNull(socialInsuranceDeposit.element("occureDate"),true)!=null){
			pb.setOccureDate(dfs.parse(socialInsuranceDeposit.element("occureDate").getTextTrim()));
		}
		
		// 缴费单位  enterpriseName	
		if(checkNull(socialInsuranceDeposit.element("enterpriseName"),false)!=null){
			pb.setCompany(socialInsuranceDeposit.element("enterpriseName").getTextTrim());
		}
		
		//中断或终止缴费原因 pauseReason
		if(checkNull(socialInsuranceDeposit.element("pauseReason"),false)!=null){
			pb.setPauseReason(ChangePauseReason.pauseReason(socialInsuranceDeposit.element("pauseReason").getTextTrim()));
		}
		
		pb.setPbocSummary(pbocS);
		
		pb.setBatchDate(batchDate);
		pb.setBatchType(TaskMissionType.FXYJM.getValue());
		
		setP.add(pb);
		pbocS.setPbocAiInRecords(setP);
		return pbocS;
	}
	
	*//**
	 * 住房公积金参缴记录
	 * @param dfs
	 * @param root
	 * @param pbocS
	 * @throws ParseException 
	 *//*
	private static PbocSummary buildAccFundRecord(PbocSummary pbocS,SimpleDateFormat dfs,Element root) throws ParseException{
		HashSet<PbocAccFundRecord> setP = new HashSet<PbocAccFundRecord>();
		PbocAccFundRecord pb = new PbocAccFundRecord();
		Element accFundRecord = root.element("accFundRecord");
		//参缴地  areaName
		if(checkNull(accFundRecord.element("areaName"),false)!=null){
			pb.setAreaName(accFundRecord.element("areaName").getTextTrim());
		}
		
		//参缴日期  openDate 
		if(checkNull(accFundRecord.element("openDate"),true)!=null){
			pb.setJoinDate(dfs.parse(accFundRecord.element("openDate").getTextTrim()));
		}
		
		//初缴月份  firstMonth 
		if(checkNull(accFundRecord.element("firstMonth"),false)!=null){
			pb.setJoinMth(accFundRecord.element("firstMonth").getTextTrim());
		}
		
		//缴至月份  toMonth
		if(checkNull(accFundRecord.element("toMonth"),false)!=null){
			pb.setEndMth(accFundRecord.element("toMonth").getTextTrim());
		}
		
		//缴费状态 accFundStatus
		if(checkNull(accFundRecord.element("status"),false)!=null){
			pb.setFundStatus(ChangeAccFundStatus.accFundStatus(accFundRecord.element("status").getTextTrim()));
		}
		
		//月缴存额	 perMonthAmount
		if(checkNull(accFundRecord.element("perMonthAmount"),false)!=null){
			pb.setAmtMth(changeNum(accFundRecord.element("perMonthAmount").getTextTrim()));
		}
		
		//个人缴存比例	 ownPercent
		if(checkNull(accFundRecord.element("ownPercent"),false)!=null){
			pb.setOwnPercent(changeNum(accFundRecord.element("ownPercent").getTextTrim()));
		}
		
		//单位缴存比例 coPercent
		if(checkNull(accFundRecord.element("coPercent"),false)!=null){
			pb.setCoPercent(changeNum(accFundRecord.element("coPercent").getTextTrim()));
		}
		
		// 缴费单位	 company 
		if(checkNull(accFundRecord.element("company"),false)!=null){
			pb.setCompany(accFundRecord.element("company").getTextTrim());
		}
		
		//信息更新日期  occureDate
		if(checkNull(accFundRecord.element("occureDate"),true)!=null){
			pb.setOccureDate(dfs.parse(accFundRecord.element("occureDate").getTextTrim()));
		}
		pb.setPbocSummary(pbocS);
		
		pb.setBatchDate(batchDate);
		pb.setBatchType(TaskMissionType.FXYJM.getValue());
		
		setP.add(pb);
		pbocS.setPbocAccFundRecords(setP);
		return pbocS;
		
	}
	
	*//**
	 * 行政处罚记录--多笔
	 * @param dfs
	 * @param root
	 * @param pbocS
	 * @throws ParseException
	 * 
	 *//*
	@SuppressWarnings("unchecked")
	private static PbocSummary buildAdministrationPunishments(PbocSummary pbocS,Element root){
		HashSet<PbocApRecord> setP = new HashSet<PbocApRecord>();
		Element administrationPunishments = root.element("administrationPunishments");
		List<Element> administrationPunishmentRecords = administrationPunishments.elements("courtExecution");
		for (int i = 0; i < administrationPunishmentRecords.size(); i++) {
			PbocApRecord pb = new PbocApRecord();
			Element pr = administrationPunishmentRecords.get(i);				
			//处罚机构  publishOrgName
			if(checkNull(pr.element("publishOrgName"),false)!=null){
				pb.setPunishOrg(pr.element("publishOrgName").getTextTrim());
			}
			
			//处罚内容  punishContent 
			if(checkNull(pr.element("punishContent"),false)!=null){
				pb.setPunishContent(pr.element("punishContent").getTextTrim());
			}
			
			//处罚金额  punishAmount  
			if(checkNull(pr.element("punishAmount"),false)!=null){
				pb.setPunishAmt(changeNum(pr.element("punishAmount").getTextTrim()));
			}			
			//生效日期  efficientDate 
			if(checkNull(pr.element("efficientDate"),false)!=null){
				pb.setEfficientDate(pr.element("efficientDate").getTextTrim());
			}
			
			//截止日期  endDate 	
			if(checkNull(pr.element("endDate"),false)!=null){
				pb.setEndDate(pr.element("endDate").getTextTrim());
			}
			
			//行政复议结果 result 
			if(checkNull(pr.element("result"),false)!=null){
				pb.setResult(pr.element("result").getTextTrim());
			}
			
			pb.setPbocSummary(pbocS);
			
			pb.setBatchDate(batchDate);
			pb.setBatchType(TaskMissionType.FXYJM.getValue());
			
			setP.add(pb);
		}
		pbocS.setPbocApRecords(setP);
		return pbocS;
	}
	
	*//**
	 * 强制执行记录--多笔
	 * @param dfs
	 * @param root
	 * @param pbocS
	 * @throws ParseException
	 * 
	 *//*
	@SuppressWarnings("unchecked")
	private static PbocSummary buildCourtExecutes(PbocSummary pbocS,SimpleDateFormat dfs,Element root)
		throws ParseException {
		HashSet<PbocCourtExecution> setP = new HashSet<PbocCourtExecution>();
		Element courtExecutes = root.element("courtExecutes");
		List<Element> courtExecution = courtExecutes.elements("courtExecution");
		for (int i = 0; i < courtExecution.size(); i++) {
			PbocCourtExecution pb = new PbocCourtExecution();
			Element pr = courtExecution.get(i);				
			//执行法院 courtName
			if(checkNull(pr.element("courtName"),false)!=null){
				pb.setCourtName(pr.element("courtName").getTextTrim());
			}
			
			//执行案由 enforceCase
			if(checkNull(pr.element("enforceCase"),false)!=null){
				pb.setEnforceCase(pr.element("enforceCase").getTextTrim());
			}
			
			//立案日期 registerDate  
			if(checkNull(pr.element("registerDate"),true)!=null){
				pb.setRegisterDate(dfs.parse(pr.element("registerDate").getTextTrim()));
			}
			
			//结案方式 enforceType	
			if(checkNull(pr.element("enforceType"),false)!=null){
				pb.setEnforceType(ChangeEnforceType.enforceType(pr.element("enforceType").getTextTrim()));
			}
			
			//结案日期  closeDate  
			if(checkNull(pr.element("closeDate"),true)!=null){
				pb.setCloseDate(dfs.parse(pr.element("closeDate").getTextTrim()));
			}
			
			//申请执行标的 lawsuitObject 	
			if(checkNull(pr.element("lawsuitObject"),false)!=null){
				pb.setLawSuit(pr.element("lawsuitObject").getTextTrim());
			}
			
			//申请执行标的价值 enforceMoney
			if(checkNull(pr.element("enforceMoney"),false)!=null){
				pb.setEnforceAmt(changeNum(pr.element("enforceMoney").getTextTrim()));
			}
			
			//已执行标的 alreadyEnforce   
			if(checkNull(pr.element("alreadyEnforce"),false)!=null){
				pb.setAlreadyEnforce(pr.element("alreadyEnforce").getTextTrim());
			}
			
			//已执行标的金额 alreadyEnforceMoney   
			if(checkNull(pr.element("alreadyEnforceMoney"),false)!=null){
				pb.setAlreadyEnforceAmt(changeNum(pr.element("alreadyEnforceMoney").getTextTrim()));
			}
			pb.setPbocSummary(pbocS);
			
			pb.setBatchDate(batchDate);
			pb.setBatchType(TaskMissionType.FXYJM.getValue());
			
			setP.add(pb);
		}
		pbocS.setPbocCourtExecutions(setP);
		return pbocS;
	}
	
	*//**
	 * 民事判决记录--多笔
	 * @param dfs
	 * @param root
	 * @param pbocS
	 * @throws ParseException
	 * 
	 *//*
	@SuppressWarnings("unchecked")
	private static PbocSummary buildCivilCourts(PbocSummary pbocS,SimpleDateFormat dfs,Element root)
		throws ParseException {
		HashSet<PbocCivilCourtRecord> setP = new HashSet<PbocCivilCourtRecord>();
		Element civilCourts = root.element("civilCourts");
		List<Element> civilCourtRecord = civilCourts.elements("civilCourtRecord");
		for (int i = 0; i < civilCourtRecord.size(); i++) {
			PbocCivilCourtRecord pb = new PbocCivilCourtRecord();
			Element pr = civilCourtRecord.get(i);				
			//立案法院  courtName
			if(checkNull(pr.element("courtName"),false)!=null){
				pb.setCourtName(pr.element("courtName").getTextTrim());
			}
			
			//案由  caseReason	
			if(checkNull(pr.element("caseReason"),false)!=null){
				pb.setCaseReason(pr.element("caseReason").getTextTrim());
			}
			
			//立案日期	 registerDate  
			if(checkNull(pr.element("registerDate"),true)!=null){
				pb.setRegisterDate(dfs.parse(pr.element("registerDate").getTextTrim()));
			}
			
			//结案方式  closedType 
			if(checkNull(pr.element("closedType"),false)!=null){
				pb.setCloseType(ChangeCloseType.closeType(pr.element("closedType").getTextTrim()));
			}
			
			//判决调解结果 caseResult 
			if(checkNull(pr.element("caseResult"),false)!=null){
				pb.setCaseResult(pr.element("caseResult").getTextTrim());
			}
			
			//判决调解生效日期 validateDate 
			if(checkNull(pr.element("validateDate"),true)!=null){
				pb.setValidateDate(dfs.parse(pr.element("validateDate").getTextTrim()));
			}
			
			//诉讼标的 lawsuitObject 
			if(checkNull(pr.element("lawsuitObject"),false)!=null){
				pb.setLawSuit(pr.element("lawsuitObject").getTextTrim());
			}
			
			//诉讼标的金额 litigationMoney 
			if(checkNull(pr.element("litigationMoney"),false)!=null){
				pb.setLitigationAmt(changeNum(pr.element("litigationMoney").getTextTrim()));
			}
			pb.setPbocSummary(pbocS);
			
			pb.setBatchDate(batchDate);
			pb.setBatchType(TaskMissionType.FXYJM.getValue());
			
			setP.add(pb);
		}
		pbocS.setPbocCivilCourtRecords(setP);
		return pbocS;
	}
	
	*//**
	 * 欠税记录--多笔
	 * @param dfs
	 * @param root
	 * @param pbocS
	 * @throws ParseException
	 * 
	 *//*
	@SuppressWarnings("unchecked")
	private static PbocSummary buildOweTaxs(PbocSummary pbocS,SimpleDateFormat dfs,Element root)
		throws ParseException {
		HashSet<PbocOweTaxRecored> setP = new HashSet<PbocOweTaxRecored>();
		Element oweTaxs = root.element("oweTaxs");
		List<Element> oweTaxRecord = oweTaxs.elements("oweTaxRecord");
		for (int i = 0; i < oweTaxRecord.size(); i++) {
			PbocOweTaxRecored pb = new PbocOweTaxRecored();
			Element pr = oweTaxRecord.get(i);				
			//主管税务机关  organName
			if(checkNull(pr.element("organName"),false)!=null){
				pb.setOrgName(pr.element("organName").getTextTrim());
			}
			
			//欠税总额  oweTaxAmountt
			if(checkNull(pr.element("oweTaxAmountt"),false)!=null){
				pb.setOweTaxAmt(changeNum(pr.element("oweTaxAmountt").getTextTrim()));
			}
			
			//欠税统计日期 revenueDate  
			if(checkNull(pr.element("revenueDate"),true)!=null){
				pb.setRevenueDate(dfs.parse(pr.element("revenueDate").getTextTrim()));
			}
			pb.setPbocSummary(pbocS);
			
			pb.setBatchDate(batchDate);
			pb.setBatchType(TaskMissionType.FXYJM.getValue());
			
			setP.add(pb);
		}
		pbocS.setPbocOweTaxRecoreds(setP);
		return pbocS;
	}
	
	*//**
	 * 对外担保信息明细--多笔
	 * 对外担保信息汇总的子集
	 * @param dfs
	 * @param root
	 * @param pbocS
	 * @throws ParseException
	 * 
	 *//*
	@SuppressWarnings("unchecked")
	private static PbocGuaranteeSummary buildGuarantees(PbocGuaranteeSummary pbocGuaranteeSummary,SimpleDateFormat dfs, Element root)
			throws ParseException {	
		HashSet<PbocGuaranteeDetail> setP = new HashSet<PbocGuaranteeDetail>();
		Element guarantees = root.element("guarantees");
		List<Element> guaranteeDetail = guarantees.elements("guaranteeDetail");
		for (int i = 0; i < guaranteeDetail.size(); i++) {
			PbocGuaranteeDetail pb = new PbocGuaranteeDetail();
			Element pr = guaranteeDetail.get(i);				
			//担保贷款发放机构  loanIssueFinanceOrg
			if(checkNull(pr.element("loanIssueFinanceOrg"),false)!=null){
				pb.setGlOrg(pr.element("loanIssueFinanceOrg").getTextTrim());
			}
			
			//担保贷款合同金额  guaranteeAmount
			if(checkNull(pr.element("guaranteeAmount"),false)!=null){
				pb.setGlAmt(changeNum(pr.element("guaranteeAmount").getTextTrim()));
			}
			
			//担保贷款发放日期  loanIssueDate
			if(checkNull(pr.element("loanIssueDate"),true)!=null){
				pb.setGlIssueDate(dfs.parse(pr.element("loanIssueDate").getTextTrim()));
			}
			
			//担保贷款到期日期  loanMatureDate
			if(checkNull(pr.element("loanMatureDate"),true)!=null){
				pb.setGlExpireDate(dfs.parse(pr.element("loanMatureDate").getTextTrim()));
			}
			
			//担保金额			  guaranteeActualAmount
			if(checkNull(pr.element("guaranteeActualAmount"),false)!=null){
				pb.setGueAmt(changeNum(pr.element("guaranteeActualAmount").getTextTrim()));
			}
			
			//担保贷款本金余额  loanPrincipalBalance
			if(checkNull(pr.element("loanPrincipalBalance"),false)!=null){
				pb.setGlBalance(changeNum(pr.element("loanPrincipalBalance").getTextTrim()));
			}
			
			//担保贷款五级分类  loanFiveClass
			if(checkNull(pr.element("loanFiveClass"),false)!=null){
				pb.setRiskGradeFive(ChangeFiveClass.fiveClass(pr.element("loanFiveClass").getTextTrim()));
			}
			
			//结算日期     settleDate  	
			if(checkNull(pr.element("settleDate"),true)!=null){
				pb.setSettleDate(dfs.parse(pr.element("settleDate").getTextTrim()));
			}	
			pb.setPbocGuaranteeSummary(pbocGuaranteeSummary);
			
			pb.setBatchDate(batchDate);
			pb.setBatchType(TaskMissionType.FXYJM.getValue());
			
			setP.add(pb);
		}		
		pbocGuaranteeSummary.setPbocGuaranteeDetails(setP);
		return pbocGuaranteeSummary;
	}
	
	*//**
	 * 准贷记卡--多笔
	 * @param dfs
	 * @param root
	 * @param pbocS
	 * @throws ParseException
	 * 
	 *//*
	@SuppressWarnings("unchecked")
	private static PbocSummary buildStandardLoancards(PbocSummary pbocS,SimpleDateFormat dfs, Element root)
			throws ParseException {
		HashSet<PbocSldSummary> setP = new HashSet<PbocSldSummary>();
		Element standardLoancards = root.element("standardLoancards");
		List<Element> standardLoancardRecord = standardLoancards.elements("standardLoancardRecord");
		for (int i = 0; i < standardLoancardRecord.size(); i++) {
			PbocSldSummary pb = new PbocSldSummary();
			Element pr = standardLoancardRecord.get(i);				
			//透支180天以上未付余额
			if(checkNull(pr.element("overdraftUnpaymentAmount"),false)!=null){
				pb.setOdBalanceM6(changeNum(pr.element("overdraftUnpaymentAmount").getTextTrim()));
			}
			
			//最大透支余额
			if(checkNull(pr.element("maxOverdraftTotal"),false)!=null){
				pb.setOdBalanceMax(changeNum(pr.element("maxOverdraftTotal").getTextTrim()));
			}
			
			//最近6个月平均透支额	
			if(checkNull(pr.element("recent6MonthAvgOverdraft"),false)!=null){
				pb.setAvgOdBalanceM6(changeNum(pr.element("recent6MonthAvgOverdraft").getTextTrim()));
			}
			
			//透支持续月数  mostPastDueFrequency
			if(checkNull(pr.element("overdraftDuringMonths"),false)!=null){
				pb.setOdMthMax(changeNum(pr.element("overdraftDuringMonths").getTextTrim()));
			}
			
			//透支金额  unpaymentAmountTotal 
			if(checkNull(pr.element("overdraftAmount"),false)!=null){
				pb.setOdAmt(changeNum(pr.element("overdraftAmount").getTextTrim()));
			}
			
			//透支月份 overdraftDate 
			if(checkNull(pr.element("overdraftDate"),false)!=null){
				pb.setOdMth(pr.element("overdraftDate").getTextTrim());
			}
			
			//共享额度  shareAmount 
			if(checkNull(pr.element("shareAmount"),false)!=null){
				pb.setShareAmt(changeNum(pr.element("shareAmount").getTextTrim()));
			}
			
			//账单日  billDate 
			if(checkNull(pr.element("billDate"),true)!=null){
				pb.setBillDate(dfs.parse(pr.element("billDate").getTextTrim()));
			}
			
			//本月实还款
			if(checkNull(pr.element("actualPaymentAmount"),false)!=null){
				pb.setActualPayAmt(changeNum(pr.element("actualPaymentAmount").getTextTrim()));
			}
			
			//最近一次还款日期
			if(checkNull(pr.element("lateActualPaymentDate"),true)!=null){
				pb.setRecentPayDate(dfs.parse(pr.element("lateActualPaymentDate").getTextTrim()));
			}
			
			//还款记录  paymentRecord 
			if(checkNull(pr.element("paymentRecord"),false)!=null){
				pb.setPayRecord(pr.element("paymentRecord").getTextTrim());		
			}
				
			//特殊交易类型  specialTradeType 
			if(checkNull(pr.element("specialTradeType"),false)!=null){
				pb.setSpecialTradeType(ChangeSpecialTradeType.specialTradeType(pr.element("specialTradeType").getTextTrim()));
			}
			
			//发生日期  occureddate 
			if(checkNull(pr.element("occureddate"),true)!=null){
				pb.setOccureDate(dfs.parse(pr.element("occureddate").getTextTrim()));
			}
			
			//变更月数  changingFrequency 
			if(checkNull(pr.element("changingFrequency"),false)!=null){
				pb.setChangingFrequency(changeNum(pr.element("changingFrequency").getTextTrim()));
			}
			
			//发生金额  changingAmount 
			if(checkNull(pr.element("changingAmount"),false)!=null){
				pb.setChangingAmt(changeNum(pr.element("changingAmount").getTextTrim()));
			}
			
			//明细记录  detailRecord 
			if(checkNull(pr.element("detailRecord"),false)!=null){
				pb.setDetailRecord(pr.element("detailRecord").getTextTrim());
			}
			
			//发卡机构说明  financeOrg	
			if(checkNull(pr.element("financeOrg"),false)!=null){
				pb.setFinanceOrg(pr.element("financeOrg").getTextTrim());
			}
			
			//本人声明     announceInfo 
			if(checkNull(pr.element("announceInfo"),false)!=null){
				pb.setAnnounceInfo(pr.element("announceInfo").getTextTrim());
			}
			
			//异议标注     dissentInfo
			if(checkNull(pr.element("dissentInfo"),false)!=null){
				pb.setDissentInfo(pr.element("dissentInfo").getTextTrim());
			}
			
			//添加日期     GetTime
			if(checkNull(pr.element("GetTime"),true)!=null){
				pb.setGetTime(dfs.parse(pr.element("GetTime").getTextTrim()));
			}
			
			//总体描述
			if(checkNull(pr.element("description"),false)!=null){
				pb.setDescription(pr.element("description").getTextTrim());
			}
			
			//近24个月还款记录状态 paymentRecord
			if(checkNull(pr.element("paymentRecord"),false)!=null){
				pb.setPaymentStatusM24(pr.element("paymentRecord").getTextTrim());
			}
			pb.setPbocSummary(pbocS);
			
			pb.setBatchDate(batchDate);
			pb.setBatchType(TaskMissionType.FXYJM.getValue());
			
			setP.add(pb);
		}
		pbocS.setPbocSldSummaries(setP);
		return pbocS;
	}
	
	*//**
	 * 贷记卡--多笔
	 * @param dfs
	 * @param root
	 * @param pbocS
	 * @throws ParseException
	 * 
	 *//*
	@SuppressWarnings("unchecked")
	private static PbocSummary buildLoancards(PbocSummary pbocS,SimpleDateFormat dfs, Element root)
			throws ParseException {
		HashSet<PbocLoancardSummary> setP = new HashSet<PbocLoancardSummary>();
		Element loancards = root.element("loancards");
		List<Element> loancardRecord = loancards.elements("loancardRecord");
		for (int i = 0; i < loancardRecord.size(); i++) {
			PbocLoancardSummary pb = new PbocLoancardSummary();
			Element pr = loancardRecord.get(i);			
			//共享额度  shareAmount  
			if(checkNull(pr.element("shareAmount"),false)!=null){
				pb.setShareAmt(changeNum(pr.element("shareAmount").getTextTrim()));
			}
			
			//已用额度  usedTotal
			if(checkNull(pr.element("usedTotal"),false)!=null){
				pb.setUseAmt(changeNum(pr.element("usedTotal").getTextTrim()));
			}
			
			//最近6个月平均使用额度  recent6MonthAvgUsedTotal
			if(checkNull(pr.element("recent6MonthAvgUsedTotal"),false)!=null){
				pb.setAvgAmtM6(changeNum(pr.element("recent6MonthAvgUsedTotal").getTextTrim()));	
			}
			
			//最大使用额度  maxUsedTotal
			if(checkNull(pr.element("maxUsedTotal"),false)!=null){
				pb.setUseAmtMax(changeNum(pr.element("maxUsedTotal").getTextTrim()));
			}
			
			//账单日  billDate 
			if(checkNull(pr.element("billDate"),true)!=null){
				pb.setBillDate(dfs.parse(pr.element("billDate").getTextTrim()));
			}
			
			//本月应还款   schedulePaymentAmount
			if(checkNull(pr.element("schedulePaymentAmount"),false)!=null){
				pb.setPlanPayAmt(changeNum(pr.element("schedulePaymentAmount").getTextTrim()));
			}
			
			//本月实还款  actualPaymentAmount
			if(checkNull(pr.element("actualPaymentAmount"),false)!=null){
				pb.setPayAmtMth(changeNum(pr.element("actualPaymentAmount").getTextTrim()));
			}
			
			//最近一次还款日期  lateActualPaymentDate 
			if(checkNull(pr.element("lateActualPaymentDate"),true)!=null){
				pb.setLastPayDate(dfs.parse(pr.element("lateActualPaymentDate").getTextTrim()));
			}
			
			//当前逾期期数  pastDueFrequency
			if(checkNull(pr.element("pastDueFrequency"),false)!=null){
				pb.setCurOdTerm(changeNum(pr.element("pastDueFrequency").getTextTrim()));
			}
			
			//当前逾期金额  pastDueAmount
			if(checkNull(pr.element("pastDueAmount"),false)!=null){
				pb.setCurOdAmt(changeNum(pr.element("pastDueAmount").getTextTrim()));
			}
			
			//还款记录  paymentRecord 
			if(checkNull(pr.element("paymentRecord"),false)!=null){
				pb.setPayRecord(pr.element("paymentRecord").getTextTrim());
			}
			
			//逾期月份  pastDueMonth	
			if(checkNull(pr.element("pastDueMonth"),false)!=null){
				pb.setOdMth(changeNum(pr.element("pastDueMonth").getTextTrim()));
			}
			
			//逾期持续月数  mostPastDueFrequency
			if(checkNull(pr.element("mostPastDueFrequency"),false)!=null){
				pb.setOdMthMax(changeNum(pr.element("mostPastDueFrequency").getTextTrim()));
			}
			
			//逾期金额  unpaymentAmountTotal 
			if(checkNull(pr.element("unpaymentAmountTotal"),false)!=null){
				pb.setOdAmt(changeNum(pr.element("unpaymentAmountTotal").getTextTrim()));
			}
			
			//特殊交易类型  specialTradeType 
			if(checkNull(pr.element("specialTradeType"),false)!=null){
				pb.setSpecialTradeType(ChangeSpecialTradeType.specialTradeType(pr.element("specialTradeType").getTextTrim()));
			}
			
			//发生日期  occureddate 
			if(checkNull(pr.element("occureddate"),true)!=null){
				pb.setOccureDate(dfs.parse(pr.element("occureddate").getTextTrim()));
			}
			
			//变更月数  changingFrequency 
			if(checkNull(pr.element("changingFrequency"),false)!=null){
				pb.setChangingFrequency(changeNum(pr.element("changingFrequency").getTextTrim()));
			}
			
			//发生金额  changingAmount 
			if(checkNull(pr.element("changingAmount"),false)!=null){
				pb.setChangingAmt(changeNum(pr.element("changingAmount").getTextTrim()));
			}
			
			//明细记录  detailRecord 
			if(checkNull(pr.element("detailRecord"),false)!=null){
				pb.setDetailRecord(pr.element("detailRecord").getTextTrim());
			}
			
			//发卡机构说明  financeOrg	
			if(checkNull(pr.element("financeOrg"),false)!=null){
				pb.setFinanceOrg(pr.element("financeOrg").getTextTrim());
			}
			
			//本人声明     announceInfo 
			if(checkNull(pr.element("announceInfo"),false)!=null){
				pb.setAnnounceInfo(pr.element("announceInfo").getTextTrim());
			}
			
			//异议标注     dissentInfo
			if(checkNull(pr.element("dissentInfo"),false)!=null){
				pb.setDissentInfo(pr.element("dissentInfo").getTextTrim());
			}
			
			//添加日期     GetTime
			if(checkNull(pr.element("GetTime"),true)!=null){
				pb.setGetTime(dfs.parse(pr.element("GetTime").getTextTrim()));
			}
			
			//总体描述
			if(checkNull(pr.element("description"),false)!=null){
				pb.setDescription(pr.element("description").getTextTrim());
				//获得信用卡状态
				String cardStauts = AnalysisCreditCard.getCreditCardStatus(pr.element("description").getTextTrim());
				pb.setCcStatus(cardStauts);
				
				//获得授信额度
				String creditL = AnalysisCreditCard.getCreditCardLimit(pr.element("description").getTextTrim());
				pb.setCreditLimit(changeNum(creditL));
			}
			
			//近24个月还款记录状态 paymentRecord
			if(checkNull(pr.element("paymentRecord"),false)!=null){
				pb.setPaymentStatusM24(pr.element("paymentRecord").getTextTrim());
			}
			pb.setPbocSummary(pbocS);
			
			pb.setBatchDate(batchDate);
			pb.setBatchType(TaskMissionType.FXYJM.getValue());
			
			setP.add(pb);
		}
		pbocS.setPbocLoancardSummaries(setP);
		return pbocS;
	}
	
	*//**
	 * 贷款信息--多笔
	 * @param dfs
	 * @param root
	 * @param pbocS
	 * @throws ParseException
	 * 
	 *//*
	@SuppressWarnings("unchecked")
	private static PbocSummary buildLoans(PbocSummary pbocS,SimpleDateFormat dfs, Element root)
			throws ParseException {
		HashSet<PbocLoanSummary> setP = new HashSet<PbocLoanSummary>();
		Element loans = root.element("loans");
		List<Element> loanRecord = loans.elements("loanRecord");
		for (int i = 0; i < loanRecord.size(); i++) {
			PbocLoanSummary pb = new PbocLoanSummary();
			Element pr = loanRecord.get(i);			
			//五级分类 fiveClass ChangeFiveClass
			if(checkNull(pr.element("fiveClass"),false)!=null){
				pb.setFiveGrade(ChangeFiveClass.fiveClass(pr.element("fiveClass").getTextTrim()));
			}
			
			//本金余额  amountBalance  
			if(checkNull(pr.element("amountBalance"),false)!=null){
				pb.setCapitalBalance(changeNum(pr.element("amountBalance").getTextTrim()));
			}
			
			//剩余还款期数  remainingPaymentMonth 
			if(checkNull(pr.element("remainingPaymentMonth"),false)!=null){
				pb.setPayTerm(changeNum(pr.element("remainingPaymentMonth").getTextTrim()));
			}else{
				pb.setPayTerm(new BigDecimal(0));
			}
			
			//本月应还款   schedulePaymentAmount 
			if(checkNull(pr.element("schedulePaymentAmount"),false)!=null){
				pb.setPlanPayAmt(changeNum(pr.element("schedulePaymentAmount").getTextTrim()));
			}
			
			//应还款日   paymentDate 
			if(checkNull(pr.element("paymentDate"),true)!=null){
				pb.setPayDate(dfs.parse(pr.element("paymentDate").getTextTrim()));
			}
			
			//本月实还款  actualPaymentAmou 
			if(checkNull(pr.element("actualPaymentAmou"),false)!=null){
				pb.setActualPayAmt(changeNum(pr.element("actualPaymentAmou").getTextTrim()));
			}
			
			//最近一次还款日期  lateActualPaymentDate
			if(checkNull(pr.element("lateActualPaymentDate"),true)!=null){
				pb.setRecentPayDate(dfs.parse(pr.element("lateActualPaymentDate").getTextTrim()));
			}
			
			//当前逾期期数  pastDueFrequency 
			if(checkNull(pr.element("pastDueFrequency"),false)!=null){
				pb.setCurOdTerm(changeNum(pr.element("pastDueFrequency").getTextTrim()));
			}
			
			//当前逾期金额  pastDueAmount 
			if(checkNull(pr.element("pastDueAmount"),false)!=null){
				pb.setCurOdAmt(changeNum(pr.element("pastDueAmount").getTextTrim()));
			}
			
			//逾期31—60天未还本金  overdueThirtyAmount 
			if(checkNull(pr.element("overdueThirtyAmount"),false)!=null){
				pb.setOverdueAmtM1(changeNum(pr.element("overdueThirtyAmount").getTextTrim()));
			}
			
			//逾期61－90天未还本金  overdueSixtyAmount
			if(checkNull(pr.element("overdueSixtyAmount"),false)!=null){
				pb.setOverdueAmtM2(changeNum(pr.element("overdueSixtyAmount").getTextTrim()));
			}
			
			//逾期91－180天未还本金  overdueNinetyAmount
			if(checkNull(pr.element("overdueNinetyAmount"),false)!=null){
				pb.setOverdueAmtM3(changeNum(pr.element("overdueNinetyAmount").getTextTrim()));
			}
			
			//逾期180天以上未还本金  overdueHundredAmount
			if(checkNull(pr.element("overdueHundredAmount"),false)!=null){
				pb.setOverdueAmtM6(changeNum(pr.element("overdueHundredAmount").getTextTrim()));
			}
			
			//还款记录  paymentRecord 
			if(checkNull(pr.element("paymentRecord"),false)!=null){
				pb.setPaymentRecord(pr.element("paymentRecord").getTextTrim());
			}
			
			//逾期月份  pastDueMonth 
			if(checkNull(pr.element("pastDueMonth"),false)!=null){
				pb.setOverdueMth(changeNum(pr.element("pastDueMonth").getTextTrim()));
			}
			
			//逾期持续月数  mostPastDueFrequency 
			if(checkNull(pr.element("mostPastDueFrequency"),false)!=null){
				pb.setOverdueMthMax(changeNum(pr.element("mostPastDueFrequency").getTextTrim()));
			}
			
			//逾期金额  unpaymentAmountTotal 	
			if(checkNull(pr.element("unpaymentAmountTotal"),false)!=null){
				pb.setOverdueAmt(changeNum(pr.element("unpaymentAmountTotal").getTextTrim()));
			}
			
			//特殊交易类型  specialTradeType 
			if(checkNull(pr.element("specialTradeType"),false)!=null){
				pb.setSpecialTradeType(ChangeSpecialTradeType.specialTradeType(pr.element("specialTradeType").getTextTrim()));
			}
			
			//发生日期  occureddate 
			if(checkNull(pr.element("occureddate"),true)!=null){
				pb.setOccureDate(dfs.parse(pr.element("occureddate").getTextTrim()));
			}
			
			//变更月数  changingFrequency 
			if(checkNull(pr.element("changingFrequency"),false)!=null){
				pb.setChangingFrequency(changeNum(pr.element("changingFrequency").getTextTrim()));
			}
			
			//发生金额  changingAmount 
			if(checkNull(pr.element("changingAmount"),false)!=null){
				pb.setChangingAmt(changeNum(pr.element("changingAmount").getTextTrim()));
			}
			
			//明细记录  detailRecord 
			if(checkNull(pr.element("detailRecord"),false)!=null){
				pb.setDetailRecord(pr.element("detailRecord").getTextTrim());
			}
			
			//发卡机构说明  financeOrg
			if(checkNull(pr.element("financeOrg"),false)!=null){
				pb.setFinanceOrg(pr.element("financeOrg").getTextTrim());
			}
			
			//本人声明     announceInfo 
			if(checkNull(pr.element("announceInfo"),false)!=null){
				pb.setAnnounceInfo(pr.element("announceInfo").getTextTrim());
			}
			
			//异议标注     dissentInfo
			if(checkNull(pr.element("dissentInfo"),false)!=null){
				pb.setDissentInfo(pr.element("dissentInfo").getTextTrim());
			}
			
			//添加日期     GetTime
			if(checkNull(pr.element("GetTime"),true)!=null){
				pb.setGetTime(dfs.parse(pr.element("GetTime").getTextTrim()));
			}
			//近24个月还款记录状态 paymentRecord
			if(checkNull(pr.element("paymentRecord"),false)!=null){
				pb.setPaymentStatusM24(pr.element("paymentRecord").getTextTrim());
			}
			
			//总体描述
			if(checkNull(pr.element("description"),false)!=null){
				pb.setDescription(pr.element("description").getTextTrim());
				String description = pr.element("description").getTextTrim();
				Map<String,String> loanIfo = AnalysisLoan.getLoanType(description);
				pb.setLoanType(loanIfo.get("loanType"));
				pb.setLoanStatus(loanIfo.get("loanStauts"));
				if(pb.getPayTerm()==null){
					pb.setPayTerm(new BigDecimal(loanIfo.get("loanDueNum")));
				}
				SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd");
				pb.setPayOverDate(df.parse(loanIfo.get("payOverDate")));
				pb.setLoanOccureDate(df.parse(loanIfo.get("loanOccureDate")));
				pb.setLoanMoney(changeNum(loanIfo.get("loanMoney")));
				
				// add by liuyin 20130131 begin
				String capitalBalance = loanIfo.get("capitalBalance");
				if (capitalBalance != null) {
					pb.setCapitalBalance(changeNum(capitalBalance));
				}
				// add by liuyin 20130131 end
			}
			pb.setPbocSummary(pbocS);
			
			pb.setBatchDate(batchDate);
			pb.setBatchType(TaskMissionType.FXYJM.getValue());
			
			setP.add(pb);			
		}
		pbocS.setPbocLoanSummaries(setP);
		return pbocS;
	}
	
	*//**
	 * 保证人代偿信息--多笔
	 * @param dfs
	 * @param root
	 * @param pbocS
	 * @throws ParseException
	 *//*
	@SuppressWarnings("unchecked")
	private static PbocSummary buildGuarateesInsteadPays(PbocSummary pbocS,SimpleDateFormat dfs, Element root)
			throws ParseException {	
		HashSet<PbocAssurePayInfo> setP = new HashSet<PbocAssurePayInfo>();
		Element guarateesInsteadPays = root.element("guarateesInsteadPays");
		List<Element> guarateeInsteadPay = guarateesInsteadPays.elements("guarateeInsteadPay");
		for (int i = 0; i < guarateeInsteadPay.size(); i++) {
			PbocAssurePayInfo pb = new PbocAssurePayInfo();
			Element pr = guarateeInsteadPay.get(i);			
			//代偿机构
			if(checkNull(pr.element("insteadFinanceOrg"),false)!=null){
				pb.setPayOrg(pr.element("insteadFinanceOrg").getTextTrim());
			}
			
			//最近一次代偿日期
			if(checkNull(pr.element("recentInsteadPayDate"),true)!=null){
				pb.setInsteadPayDate(dfs.parse(pr.element("recentInsteadPayDate").getTextTrim()));
			}
			
			//累计代偿金额
			if(checkNull(pr.element("totalInsteadPayAmount"),false)!=null){
				pb.setPayAmtSum(changeNum(pr.element("totalInsteadPayAmount").getTextTrim()));
			}
			
			//最近一次还款日期
			if(checkNull(pr.element("recentPayDate"),true)!=null){
				pb.setPayDate(dfs.parse(pr.element("recentPayDate").getTextTrim()));
			}
			
			//余额
			if(checkNull(pr.element("balance"),false)!=null){
				pb.setBalance(changeNum(pr.element("balance").getTextTrim()));
			}
			pb.setPbocSummary(pbocS);
			
			pb.setBatchDate(batchDate);
			pb.setBatchType(TaskMissionType.FXYJM.getValue());
			
			setP.add(pb);
		}
		pbocS.setPbocAssurePayInfos(setP);
		return pbocS;
	}
	
	*//**
	 * 资产处置信息--多笔
	 * @param dfs
	 * @param root
	 * @param pbocS
	 * @throws ParseException
	 *//*
	@SuppressWarnings("unchecked")
	private static PbocSummary buildAssetDisposes(PbocSummary pbocS,SimpleDateFormat dfs, Element root)
			throws ParseException {	
		HashSet<PbocAssetDisposal> setP = new HashSet<PbocAssetDisposal>();
		Element assetDisposes = root.element("assetDisposes");
		List<Element> assetDisposal = assetDisposes.elements("assetDisposal");
		for (int i = 0; i < assetDisposal.size(); i++) {
			PbocAssetDisposal pb = new PbocAssetDisposal();
			Element pr = assetDisposal.get(i);			
			//资产管理公司
			if(checkNull(pr.element("receiveDebtDate"),false)!=null){
				pb.setAssetManageCopany(pr.element("assetManageCompany").getTextTrim());
			}
			
			//债务接收日期
			if(checkNull(pr.element("receiveDebtDate"),true)!=null){
				pb.setDebtReceiveDate(dfs.parse(pr.element("receiveDebtDate").getTextTrim()));
			}
			
			//接收的债权金额
			if(checkNull(pr.element("receiveDebtAmount"),false)!=null){
				pb.setDebtReceiveAmt(changeNum(pr.element("receiveDebtAmount").getTextTrim()));
			}
			
			//最近一次还款日期
			if(checkNull(pr.element("recentPayDate"),true)!=null){
				pb.setRecentPayDate(dfs.parse(pr.element("recentPayDate").getTextTrim()));
			}
			
			//余额
			if(checkNull(pr.element("balance"),false)!=null){
				pb.setBalance(changeNum(pr.element("balance").getTextTrim()));
			}
			pb.setPbocSummary(pbocS);
			
			pb.setBatchDate(batchDate);
			pb.setBatchType(TaskMissionType.FXYJM.getValue());
			
			setP.add(pb);
		}
		
		pbocS.setPbocAssetDisposal(setP);
		return pbocS;
	}
	
	*//**
	 * 对外担保信息汇总
	 * @param root
	 * @param pbocS
	 * @param dfs
	 * @throws ParseException 
	 *//*
	private static PbocSummary buildGuaranteeSummary(PbocSummary pbocS,SimpleDateFormat dfs,Element root) throws ParseException{
		HashSet<PbocGuaranteeSummary> setP = new HashSet<PbocGuaranteeSummary>();
		PbocGuaranteeSummary pb = new PbocGuaranteeSummary();
		Element guaranteeSummary = root.element("guaranteeSummary");
		//担保笔数
		if(checkNull(guaranteeSummary.element("guaranteeCnt"),false)!=null){
			pb.setAssureCnt(changeNum(guaranteeSummary.element("guaranteeCnt").getTextTrim()));
		}
		
		//担保金额
		if(checkNull(guaranteeSummary.element("guaranteeAmount"),false)!=null){
			pb.setAssureAmt(changeNum(guaranteeSummary.element("guaranteeAmount").getTextTrim()));
		}
		
		//担保本金余额
		if(checkNull(guaranteeSummary.element("guaranteeActualAmountt"),false)!=null){
			pb.setAssureBalance(changeNum(guaranteeSummary.element("guaranteeActualAmountt").getTextTrim()));
		}
		pb.setPbocSummary(pbocS);
		
		pb.setBatchDate(batchDate);
		pb.setBatchType(TaskMissionType.FXYJM.getValue());
		
		//add 对外担保信息明细数据
		pb = buildGuarantees(pb,dfs, root);		
		setP.add(pb);
		pbocS.setPbocGuaranteeSummaries(setP);
		return pbocS;
	}
	
	*//**
	 * 征信未销户准贷记卡信息汇总
	 * @param root
	 * @param pbocS
	 *//*
	private static PbocSummary buildUnCancelAccountStandardLoancardSummary(PbocSummary pbocS,Element root){
		HashSet<PbocUncancelSlcSummary> setP = new HashSet<PbocUncancelSlcSummary>();
		PbocUncancelSlcSummary pb = new PbocUncancelSlcSummary();
		Element unCancelAccountStandardLoancardSummary = root.element("unCancelAccountStandardLoancardSummary");
		//发卡法人机构数
		if(checkNull(unCancelAccountStandardLoancardSummary.element("financeCorpCount"),false)!=null){
			pb.setCopCnt(changeNum(unCancelAccountStandardLoancardSummary.element("financeCorpCount").getTextTrim()));
		}
		
		//发卡机构数
		if(checkNull(unCancelAccountStandardLoancardSummary.element("financeOrgCount"),false)!=null){
			pb.setOrgCnt(changeNum(unCancelAccountStandardLoancardSummary.element("financeOrgCount").getTextTrim()));
		}
		
		//账户数
		if(checkNull(unCancelAccountStandardLoancardSummary.element("acountCnt"),false)!=null){
			pb.setActCnt(changeNum(unCancelAccountStandardLoancardSummary.element("acountCnt").getTextTrim()));
		}
		
		//授信总额
		if(checkNull(unCancelAccountStandardLoancardSummary.element("creditLimitTotal"),false)!=null){
			pb.setCreditAmt(changeNum(unCancelAccountStandardLoancardSummary.element("creditLimitTotal").getTextTrim()));
		}
		
		//单家行最高授信额
		if(checkNull(unCancelAccountStandardLoancardSummary.element("singleBankMaxCreditLimitTotal"),false)!=null){
			pb.setCreditAmtMax(changeNum(unCancelAccountStandardLoancardSummary.element("singleBankMaxCreditLimitTotal").getTextTrim()));
		}
		
		//单家行最低授信额
		if(checkNull(unCancelAccountStandardLoancardSummary.element("singleBankMinCreditLimitTotal"),false)!=null){
			pb.setCreditAmtMin(changeNum(unCancelAccountStandardLoancardSummary.element("singleBankMinCreditLimitTotal").getTextTrim()));
		}
		
		//已用额度
		if(checkNull(unCancelAccountStandardLoancardSummary.element("overdraft"),false)!=null){
			pb.setOverdraft(changeNum(unCancelAccountStandardLoancardSummary.element("overdraft").getTextTrim()));
		}
		
		//最近6个月平均使用额度
		if(checkNull(unCancelAccountStandardLoancardSummary.element("recent6MonthAvgUsedTotal"),false)!=null){
			pb.setAvgUsedAmtM6(changeNum(unCancelAccountStandardLoancardSummary.element("recent6MonthAvgUsedTotal").getTextTrim()));
		}
		pb.setPbocSummary(pbocS);
		
		pb.setBatchDate(batchDate);
		pb.setBatchType(TaskMissionType.FXYJM.getValue());
		
		setP.add(pb);
		pbocS.setPbocUncancelSlcSummaries(setP);
		return pbocS;
	}
	
	*//**
	 * 未销户贷记卡信息汇总
	 * @param root
	 * @param pbocS
	 *//*
	private static PbocSummary buildUnCancelAccountLoancardSummary(PbocSummary pbocS,Element root){
		HashSet<PbocUncancelLcSummary> setP = new HashSet<PbocUncancelLcSummary>();
		PbocUncancelLcSummary pb = new PbocUncancelLcSummary();
		Element unCancelAccountLoancardSummary = root.element("unCancelAccountLoancardSummary");
		//发卡法人机构数
		if(checkNull(unCancelAccountLoancardSummary.element("financeCorpCount"),false)!=null){
			pb.setCopCnt(changeNum(unCancelAccountLoancardSummary.element("financeCorpCount").getTextTrim()));
		}
		
		//发卡机构数
		if(checkNull(unCancelAccountLoancardSummary.element("financeOrgCount"),false)!=null){
			pb.setOrgCnt(changeNum(unCancelAccountLoancardSummary.element("financeOrgCount").getTextTrim()));
		}
		
		//账户数
		if(checkNull(unCancelAccountLoancardSummary.element("acountCnt"),false)!=null){
			pb.setActCnt(changeNum(unCancelAccountLoancardSummary.element("acountCnt").getTextTrim()));
		}
		
		//授信总额
		if(checkNull(unCancelAccountLoancardSummary.element("creditLimitTotal"),false)!=null){
			pb.setCreditAmt(changeNum(unCancelAccountLoancardSummary.element("creditLimitTotal").getTextTrim()));
		}
		
		//单家行最高授信额
		if(checkNull(unCancelAccountLoancardSummary.element("singleBankMaxCreditLimitTotal"),false)!=null){
			pb.setCreditAmtMax(changeNum(unCancelAccountLoancardSummary.element("singleBankMaxCreditLimitTotal").getTextTrim()));
		}
		
		//单家行最低授信额
		if(checkNull(unCancelAccountLoancardSummary.element("singleBankMinCreditLimitTotal"),false)!=null){
			pb.setCreditAmtMin(changeNum(unCancelAccountLoancardSummary.element("singleBankMinCreditLimitTotal").getTextTrim()));
		}
		
		//透支余额
		if(checkNull(unCancelAccountLoancardSummary.element("usedTotal"),false)!=null){
			pb.setUsedAmt(changeNum(unCancelAccountLoancardSummary.element("usedTotal").getTextTrim()));
		}
		
		//最近6个月平均使用额度
		if(checkNull(unCancelAccountLoancardSummary.element("recent6MonthAvgUsedTotal"),false)!=null){
			pb.setAvgUsedAmtM6(changeNum(unCancelAccountLoancardSummary.element("recent6MonthAvgUsedTotal").getTextTrim()));
		}
		pb.setPbocSummary(pbocS);
		
		pb.setBatchDate(batchDate);
		pb.setBatchType(TaskMissionType.FXYJM.getValue());
		
		setP.add(pb);
		pbocS.setPbocUncancelLcSummaries(setP);
		return pbocS;		
	}
	
	*//**
	 * 未结清贷款信息汇总
	 * @param root
	 * @param pbocS
	 *//*
	private static PbocSummary buildUnsettledLoanSummary(PbocSummary pbocS,Element root){
		HashSet<PbocUnslSummary> setP = new HashSet<PbocUnslSummary>();
		PbocUnslSummary pb = new PbocUnslSummary();
		Element unsettledLoanSummary = root.element("unsettledLoanSummary");
		//贷款法人机构数
		if(checkNull(unsettledLoanSummary.element("loanFinanceCorpCount"),false)!=null){
			pb.setLoanCopCnt(changeNum(unsettledLoanSummary.element("loanFinanceCorpCount").getTextTrim()));
		}
		
		//贷款机构数
		if(checkNull(unsettledLoanSummary.element("loanFinanceOrgCount"),false)!=null){
			pb.setLoanOrgCnt(changeNum(unsettledLoanSummary.element("loanFinanceOrgCount").getTextTrim()));
		}
		
		//笔数
		if(checkNull(unsettledLoanSummary.element("loanCnt"),false)!=null){
			pb.setLoanCnt(changeNum(unsettledLoanSummary.element("loanCnt").getTextTrim()));
		}
		
		//合同总额
		if(checkNull(unsettledLoanSummary.element("conactTotalAmount"),false)!=null){
			pb.setContractAmount(changeNum(unsettledLoanSummary.element("conactTotalAmount").getTextTrim()));
		}
		
		//余额
		if(checkNull(unsettledLoanSummary.element("balance"),false)!=null){
			pb.setBalance(changeNum(unsettledLoanSummary.element("balance").getTextTrim()));
		}
		
		//最近6个月平均应还款
		if(checkNull(unsettledLoanSummary.element("recently6MonthAvgPay"),false)!=null){
			pb.setAvgPayM6(changeNum(unsettledLoanSummary.element("recently6MonthAvgPay").getTextTrim()));
		}
		pb.setPbocSummary(pbocS);
		
		pb.setBatchDate(batchDate);
		pb.setBatchType(TaskMissionType.FXYJM.getValue());
		
		setP.add(pb);
		pbocS.setPbocUnslSummaries(setP);
		return pbocS;		
	}
	
	*//**
	 * 逾期（透支）信息汇总
	 * @param root
	 * @param pbocS
	 *//*
	private static PbocSummary buildUnpaymentOverdraftSummary(PbocSummary pbocS,Element root){
		HashSet<PbocOdSummary> setP = new HashSet<PbocOdSummary>();
		PbocOdSummary pb = new PbocOdSummary();
		Element unpaymentOverdraftSummary = root.element("unpaymentOverdraftSummary");
		//贷款逾期笔数
		if(checkNull(unpaymentOverdraftSummary.element("loanUnpaymentTotalCnt"),false)!=null){
			pb.setLoanOdCnt(changeNum(unpaymentOverdraftSummary.element("loanUnpaymentTotalCnt").getTextTrim()));
		}
		
		//贷款逾期月份数
		if(checkNull(unpaymentOverdraftSummary.element("loanUnpaymentTotalMonths"),false)!=null){
			pb.setLoanOdMth(changeNum(unpaymentOverdraftSummary.element("loanUnpaymentTotalMonths").getTextTrim()));
		}
		
		//贷款逾期单月最高逾期总额
		if(checkNull(unpaymentOverdraftSummary.element("loanUnpaymentMaxUnpayAmount"),false)!=null){
			pb.setLoanOdBalMthMax(changeNum(unpaymentOverdraftSummary.element("loanUnpaymentMaxUnpayAmount").getTextTrim()));
		}
		
		//贷款逾期最长逾期月数
		if(checkNull(unpaymentOverdraftSummary.element("loanUnpaymentLongestUnpayMonths"),false)!=null){
			pb.setLoanOdMthMax(changeNum(unpaymentOverdraftSummary.element("loanUnpaymentLongestUnpayMonths").getTextTrim()));
		}
		
		//贷记卡逾期账户数
		if(checkNull(unpaymentOverdraftSummary.element("loanCardUnpaymentAccountCnt"),false)!=null){
			pb.setLcActCnt(changeNum(unpaymentOverdraftSummary.element("loanCardUnpaymentAccountCnt").getTextTrim()));
		}
		
		//贷记卡逾期月份数
		if(checkNull(unpaymentOverdraftSummary.element("loanCardUnpaymentTotalMonths"),false)!=null){
			pb.setLcOdMth(changeNum(unpaymentOverdraftSummary.element("loanCardUnpaymentTotalMonths").getTextTrim()));
		}
		
		//贷记卡逾期单月最高逾期总额
		if(checkNull(unpaymentOverdraftSummary.element("loanCardUnpaymentMaxUnpayAmount"),false)!=null){
			pb.setLcOdBalMthMax(changeNum(unpaymentOverdraftSummary.element("loanCardUnpaymentMaxUnpayAmount").getTextTrim()));
		}
		
		//贷记卡逾期最长逾期月数
		if(checkNull(unpaymentOverdraftSummary.element("loanCardUnpaymentLongestUnpayMonths"),false)!=null){
			pb.setLcOdMthMax(changeNum(unpaymentOverdraftSummary.element("loanCardUnpaymentLongestUnpayMonths").getTextTrim()));
		}
		
		//准贷记卡60天以上透支账户数
		if(checkNull(unpaymentOverdraftSummary.element("standardLoanCardUnpaymentAccountCnt"),false)!=null){
			pb.setSlcOdActCnt60(changeNum(unpaymentOverdraftSummary.element("standardLoanCardUnpaymentAccountCnt").getTextTrim()));
		}
		
		//准贷记卡60天以上透支月份数
		if(checkNull(unpaymentOverdraftSummary.element("standardLoanCardUnpaymentTotalMonths"),false)!=null){
			pb.setSlcOdMth60(changeNum(unpaymentOverdraftSummary.element("standardLoanCardUnpaymentTotalMonths").getTextTrim()));
		}
		
		//准贷记卡60天以上透支单月最高透支余额
		if(checkNull(unpaymentOverdraftSummary.element("standardLoanCardUnpaymentMaxtUnpayMonths"),false)!=null){
			pb.setSlcOdBalMthMax(changeNum(unpaymentOverdraftSummary.element("standardLoanCardUnpaymentMaxtUnpayMonths").getTextTrim()));
		}
		
		//准贷记卡60天以上透支最长透支月数
		if(checkNull(unpaymentOverdraftSummary.element("standardLoanCardUnpaymentLongestUnpayMonths"),false)!=null){
			pb.setSlcOdMthMax(changeNum(unpaymentOverdraftSummary.element("standardLoanCardUnpaymentLongestUnpayMonths").getTextTrim()));
		}
		pb.setPbocSummary(pbocS);
		
		pb.setBatchDate(batchDate);
		pb.setBatchType(TaskMissionType.FXYJM.getValue());
		
		setP.add(pb);
		pbocS.setPbocOdSummaries(setP);
		return pbocS;
	}
	
	*//**
	 * 逾期及违约信息概要
	 * @param root
	 * @param pbocS
	 *//*
	private static PbocSummary buildUnpaymentAndInvalidSummary(PbocSummary pbocS,Element root){
		HashSet<PbocOdBaSummary> setP = new HashSet<PbocOdBaSummary>();
		PbocOdBaSummary pb = new PbocOdBaSummary();
		Element unpaymentAndInvalidSummary = root.element("unpaymentAndInvalidSummary");
		//呆账信息汇总笔数
		if(checkNull(unpaymentAndInvalidSummary.element("badAccountTotalCnt"),false)!=null){
			pb.setBadActCnt(changeNum(unpaymentAndInvalidSummary.element("badAccountTotalCnt").getTextTrim()));
		}
		
		//呆账信息汇总余额
		if(checkNull(unpaymentAndInvalidSummary.element("badAccountTotalBalance"),false)!=null){
			pb.setBadActBalance(changeNum(unpaymentAndInvalidSummary.element("badAccountTotalBalance").getTextTrim()));
		}
		
		//资产处置信息汇总笔数
		if(checkNull(unpaymentAndInvalidSummary.element("assetDisposalTotalCnt"),false)!=null){
			pb.setAdCnt(changeNum(unpaymentAndInvalidSummary.element("assetDisposalTotalCnt").getTextTrim()));
		}
		
		//资产处置信息汇总余额
		if(checkNull(unpaymentAndInvalidSummary.element("assetDisposalTotalBalance"),false)!=null){
			pb.setAdBalance(changeNum(unpaymentAndInvalidSummary.element("assetDisposalTotalBalance").getTextTrim()));
		}
		
		//保证人代偿信息汇总余额
		if(checkNull(unpaymentAndInvalidSummary.element("guarateePayTotalCnt"),false)!=null){
			pb.setAsrPayCnt(changeNum(unpaymentAndInvalidSummary.element("guarateePayTotalCnt").getTextTrim()));
		}
		
		//贷记卡账户数
		if(checkNull(unpaymentAndInvalidSummary.element("guarateePayTotalBalance"),false)!=null){
			pb.setAsrPayBalance(changeNum(unpaymentAndInvalidSummary.element("guarateePayTotalBalance").getTextTrim()));
		}
		pb.setPbocSummary(pbocS);
		
		pb.setBatchDate(batchDate);
		pb.setBatchType(TaskMissionType.FXYJM.getValue());
		
		setP.add(pb);
		pbocS.setPbocOdBaSummaries(setP);
		return pbocS;
	}
	
	*//**
	 * 信用提示
	 * @param dfs
	 * @param root
	 * @param pbocS
	 * @throws ParseException
	 *//*
	private static PbocSummary bulidCreditTip(PbocSummary pbocS,Element root){
		HashSet<PbocCreditTip> setP = new HashSet<PbocCreditTip>();
		PbocCreditTip pt = new PbocCreditTip();
		Element creditTip = root.element("creditTip");
		//住房贷款笔数
		if(checkNull(creditTip.element("houseLoanCnt"),false)!=null){
			pt.setHlCnt(changeNum(creditTip.element("houseLoanCnt").getTextTrim()));
		}
		
		//其他贷款笔数
		if(checkNull(creditTip.element("otherLoanCnt"),false)!=null){
			pt.setOlCnt(changeNum(creditTip.element("otherLoanCnt").getTextTrim()));
		}
		
		//首笔贷款发放月
		if(checkNull(creditTip.element("firstLoanPaymentMonth"),false)!=null){
			pt.setFitLpMth(creditTip.element("firstLoanPaymentMonth").getTextTrim());
		}
		
		//贷记卡账户数
		if(checkNull(creditTip.element("loanCardAccountNumber"),false)!=null){
			pt.setLcActNum(changeNum(creditTip.element("loanCardAccountNumber").getTextTrim()));	
		}
		
		//首张贷记卡发卡月份
		if(checkNull(creditTip.element("firstLoanCardIssuedMonth"),false)!=null){
			pt.setFitLcIsdMth(creditTip.element("firstLoanCardIssuedMonth").getTextTrim());
		}
		
		//准贷记卡账户数
		if(checkNull(creditTip.element("standardLoancardAccountNumber"),false)!=null){
			pt.setSldActNum(changeNum(creditTip.element("standardLoancardAccountNumber").getTextTrim()));
		}
		
		//首张准贷记卡发卡月份
		if(checkNull(creditTip.element("firstStandardLoancardIssueMonth"),false)!=null){
			pt.setFitSlcIsdMth(creditTip.element("firstStandardLoancardIssueMonth").getTextTrim());
		}
		
		//本人声明数目
		if(checkNull(creditTip.element("announcementCnt"),false)!=null){
			pt.setAntCnt(changeNum(creditTip.element("announcementCnt").getTextTrim()));
		}
		
		//异议标注数目
		if(checkNull(creditTip.element("dissentCnt"),false)!=null){
			pt.setDissentCnt(changeNum(creditTip.element("dissentCnt").getTextTrim()));
		}
		
		//中征信评分
//		if(checkNull(creditTip.element("creditScore").getTextTrim())!=null){
//			pt.setCreditScore(changeNum(creditTip.element("creditScore").getTextTrim()));
//		}
		
		//评分月份
//		pt.setScoreMonth(creditTip.element("scoreMonth").getTextTrim());
		pt.setPbocSummary(pbocS);
		
		pt.setBatchDate(batchDate);
		pt.setBatchType(TaskMissionType.FXYJM.getValue());
		
		setP.add(pt);
		pbocS.setPbocCreditTips(setP);
		return pbocS;
	}
	
	*//**
	 * 职业信息--多笔
	 * @param dfs
	 * @param root
	 * @param pbocS
	 * @throws ParseException
	 *//*
	@SuppressWarnings("unchecked")
	private static PbocSummary bulidProfessions(PbocSummary pbocS,SimpleDateFormat dfs, Element root)
			throws ParseException {
		HashSet<PbocProfessional> setP = new HashSet<PbocProfessional>();
		Element professions = root.element("professions");
		List<Element> professional = professions.elements("professional");
		for (int i = 0; i < professional.size(); i++) {
			PbocProfessional prf = new PbocProfessional();
			Element pr = professional.get(i);			
			//职称	
			if(checkNull(pr.element("title"),false)!=null){
				prf.setTitle(ChangeTitle.title(pr.element("title").getTextTrim()));
			}
			
			//行业
			if(checkNull(pr.element("employerProfession"),false)!=null){
				prf.setEmployerProfession(ChangeEmployerProfession.employerProfession(pr.element("employerProfession").getTextTrim()));
			}
			
			//职业
			if(checkNull(pr.element("occupation"),false)!=null){
				prf.setOccupation(ChangeOccupation.occupation(pr.element("occupation").getTextTrim()));
			}
			
			//工作单位
			if(checkNull(pr.element("employerName"),false)!=null){
				prf.setEmployerName(pr.element("employerName").getTextTrim());		
			}
				
			//信息更新日期
			if(checkNull(pr.element("occureDate"),true)!=null){
				prf.setOccurDate(dfs.parse(pr.element("occureDate").getTextTrim()));
			}			
			//进入本单位年份
			if(checkNull(pr.element("startYear"),false)!=null){
				prf.setStartYear(pr.element("startYear").getTextTrim());
			}
			
			//职务
			if(checkNull(pr.element("duty"),false)!=null){
				prf.setDuty(ChangeDuty.duty(pr.element("duty").getTextTrim()));
			}
			
			//单位地址
			if(checkNull(pr.element("employerAddress"),false)!=null){
				prf.setEmployerAddress(pr.element("employerAddress").getTextTrim());
			}
			
			prf.setPbocSummary(pbocS);
			
			prf.setBatchDate(batchDate);
			prf.setBatchType(TaskMissionType.FXYJM.getValue());
			
			setP.add(prf);
		}
		pbocS.setPbocProfessionals(setP);
		return pbocS;
	}

	*//**
	 * 征信人居住信息--多笔
	 * @param dfs
	 * @param root
	 * @param pbocS
	 * @throws ParseException
	 *//*
	@SuppressWarnings("unchecked")
	private static PbocSummary bulidResides(PbocSummary pbocS,SimpleDateFormat dfs, Element root)
			throws ParseException {
		HashSet<PbocResidence> setP = new HashSet<PbocResidence>();
		Element resides = root.element("resides");
		List<Element> residence = resides.elements("residence");
		for (int i = 0; i < residence.size(); i++) {
			PbocResidence pr = new PbocResidence();
			Element rc = residence.get(i);
			//信息更新日期
			if(checkNull(rc.element("occureDate"),true)!=null){
				pr.setOccurDate(dfs.parse(rc.element("occureDate").getTextTrim()));
			}			
			//居住地址
			if(checkNull(rc.element("address"),false)!=null){
				pr.setAdress(rc.element("address").getTextTrim());
			}
			
			//居住状况
			if(checkNull(rc.element("type"),false)!=null){
				pr.setLiveStatus(ChangeResidence.residence(rc.element("type").getTextTrim()));
			}
			
			pr.setPbocSummary(pbocS);
			
			pr.setBatchDate(batchDate);
			pr.setBatchType(TaskMissionType.FXYJM.getValue());
			
			setP.add(pr);
		}
		
		pbocS.setPbocResidences(setP);
		return pbocS;
	}

	*//**
	 * 配偶信息
	 * @param root
	 * @param pbocS
	 *//*
	private static PbocSummary buildSpouse(PbocSummary pbocS,Element root) {
		HashSet<PbocSpouse> setP = new HashSet<PbocSpouse>();		
		PbocSpouse ps = new PbocSpouse();
		Element spouse = root.element("spouse");
		//姓名
		ps.setName(spouse.element("name").getTextTrim());
		//证件类型
		ps.setCertificateType(ChangeCertTypeForName.certTypeKey(spouse.element("certificateType").getTextTrim()));
		//证件号码
		ps.setCertificateNo(spouse.element("certificateNo").getTextTrim());
		//工作单位
		ps.setEmployer(spouse.element("employer").getTextTrim());
		//联系电话
		ps.setTelephoneNo(spouse.element("telephoneNo").getTextTrim());
		ps.setPbocSummary(pbocS);
		
		ps.setBatchDate(batchDate);
		ps.setBatchType(TaskMissionType.FXYJM.getValue());
		
		setP.add(ps);
		pbocS.setPbocSpouses(setP);
		return pbocS;
	}

	*//**
	 * 个人身份信息
	 * @param dfs
	 * @param root
	 * @param pbocS
	 * @throws ParseException
	 *//*
	private static PbocSummary buildPersonalIdentity(PbocSummary pbocS,SimpleDateFormat dfs,
			Element root) throws ParseException {
		
		HashSet<PbocApplicantIdentity> setP = new HashSet<PbocApplicantIdentity>();
		
		PbocApplicantIdentity pa = new PbocApplicantIdentity();
		Element personalIdentity = root.element("personalIdentity");
		//性别
		pa.setGender(ChangeGender.gender(personalIdentity.element("gender").getTextTrim()));
		//出生日期
		if(checkNull(personalIdentity.element("birthday"),true)!=null){
			pa.setBirthday(dfs.parse(personalIdentity.element("birthday").getTextTrim()));
		}
		
		//婚姻状况
		pa.setMaritalState(ChangeMaritalState.maritalState(personalIdentity.element("maritalState").getTextTrim()));
		//手机号码
		String mobileTelephoneNo = personalIdentity.element("mobileTelephoneNo").getTextTrim();
		if (mobileTelephoneNo != null && mobileTelephoneNo.length() > 11) {
			mobileTelephoneNo = mobileTelephoneNo.substring(0, 11);
		}
		pa.setMobileTelephoneNo(mobileTelephoneNo);
		//单位电话
		pa.setOfficeTelephoneNo(personalIdentity.element("officeTelephoneNo").getTextTrim());
		//住宅电话
		pa.setHomeTelephoneNo(personalIdentity.element("homeTelephoneNo").getTextTrim());
		//学历
		pa.setEduLevel(ChangeEduLevel.eduLevel(personalIdentity.element("eduLevel").getTextTrim()));
		//学位
		pa.setEduDegree(ChangeEduDegree.eduDegree(personalIdentity.element("eduDegree").getTextTrim()));
		//通讯地址
		pa.setPostAdress(personalIdentity.element("postAddress").getTextTrim());
		//户籍地址
		pa.setRegisteredAdress(personalIdentity.element("registeredAddress").getTextTrim());
		pa.setPbocSummary(pbocS);
		
		pa.setBatchDate(batchDate);
		pa.setBatchType(TaskMissionType.FXYJM.getValue());
		
		setP.add(pa);
		pbocS.setPbocApplicantIdentities(setP);
		return pbocS;
	}

	*//**
	 * 人行主表信息
	 * @param df
	 * @param pbocSummary
	 * @param root
	 * @throws ParseException
	 */
	private static PbocSummary buildSummary(SimpleDateFormat df, Element root) throws ParseException {
		
		
		
		PbocSummary pbocSummary = new PbocSummary();
		SimpleDateFormat df2 = new SimpleDateFormat("yyyy-MM-dd");
		Element summary = root.element("summary");
		/*//报告编号
		pbocSummary.setReportSn(summary.element("reportSN").getTextTrim());
		//查询请求时间
		if(checkNull(summary.element("queryTime"),true)!=null){
			pbocSummary.setQueryTime(df.parse(summary.element("queryTime").getText()));
		}else{
			//针对空征信获取当前系统时间给querytime HLRain 20130905
			pbocSummary.setQueryTime(df2.parse(df2.format(new Date())));
		}
		
		//报告时间
		if(checkNull(summary.element("reportCreateTime"),true)!=null){
			pbocSummary.setReportCreateTime(df.parse(summary.element("reportCreateTime").getText()));	
		}
		
		//被查询者姓名
		if(checkNull(summary.element("querierName"),false)!=null){
			pbocSummary.setQuerierName(summary.element("querierName").getTextTrim());
		}
		
		//被查询者证件类型
		if(checkNull(summary.element("querierCertType"),false)!=null){
			pbocSummary.setQuerierCertType(ChangeCertTypeForName.certTypeKey(summary.element("querierCertType").getTextTrim()));
		}
		
		//被查询者证件号码
		if(checkNull(summary.element("querierCertNo"),false)!=null){
			pbocSummary.setQuerierCertNo(summary.element("querierCertNo").getTextTrim());
		}
				
		//查询操作员
		pbocSummary.setUserCode(summary.element("userCode").getTextTrim());
		//查询原因
		pbocSummary.setQueryReason(ChangeQueryReason.queryReason(summary.element("queryReason").getTextTrim()));
		
		pbocSummary.setBatchDate(batchDate);
		pbocSummary.setBatchType(TaskMissionType.FXYJM.getValue());
		*/
		return pbocSummary;
	}
	
	/**
	 * 检核日期及数字是否为"--"或""
	 * @param s
	 * @return
	 *//*
	private static Element checkNull(Element pr,boolean isDate){
		if(pr!=null){
			if(pr.getTextTrim().equals("")||pr.getTextTrim().equals("--")){
				return null;
			}else{
				if(isDate){
					if(!dateS(pr.getTextTrim())){
						return null;
					}
				}
			}
			return pr;
		}			
		return null;
	}
	
	*//**
	 * 检核日期字符长度
	 * @param dateStr
	 * @return
	 *//*
	private static boolean dateS(String dateStr){
		if(dateStr.trim().length()==10||dateStr.trim().length()==19){
			return true;
		}
		return false;
	}
	
	*//**
	 * 数值装换
	 * @param s
	 * @return
	 *//*
	private static BigDecimal changeNum(String s){
		String ns = s.replace(",", "");
		if(isNumeric(ns)){
			return new BigDecimal(ns);
		}
		return new BigDecimal(0);
	}
	
	//判断是否为数值
	public static boolean isNumeric(String str){
		for (int i = str.length();--i>=0;){
			if (!Character.isDigit(str.charAt(i))){
			    return false;
			}
		}
		return true;
	}*/
}
